package br.ufal.ic.fracao.especialist.domain;

import java.util.ArrayList;
import java.util.List;

public class Rule {
    
    private String name;
    private List<Item> premisses;
    private Item conclusion;
    
    public Rule() {
        premisses = new ArrayList<Item>();
        conclusion = new Item();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Item> getPremisses() {
        return premisses;
    }

    public void setPremisses(List<Item> premisses) {
        this.premisses = premisses;
    }

    public Item getConclusion() {
        return conclusion;
    }

    public void setConclusion(Item conclusion) {
        this.conclusion = conclusion;
    }

    public void addPremisse(Item _item) {
        premisses.add(_item);
    }
}
